﻿package problems.diningphilosophers.philosophers;

import problems.BenchmarkSemaphore;


public abstract class AbstractPhilosopher
{
    protected final BenchmarkSemaphore leftFork;
    protected final BenchmarkSemaphore rightFork;

    protected AbstractPhilosopher(BenchmarkSemaphore leftFork, BenchmarkSemaphore rightFork)
    {
        this.leftFork = leftFork;
        this.rightFork = rightFork;
    }

    public abstract void getForks();
    public abstract void putForks();
}